@import '~materialize-css/dist/css/materialize.css';

html, body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  background: #fafafa;
}

$base-margin-left: 20px;
$theme-primary: #1E88E5;
$theme-secondary: #424242;

.toast.info-toast {
  background-color: #3498db;
}

.toast.notice-toast {
  background-color: #07bc0c;
}

.toast.error-toast {
  background-color: #e74c3c;
}

.agora-theme {
  .collapsible-header {
    border: none;
  }
  .btn-primary {
    color: #fff;
    background-color: $theme-primary !important;
  }
  .agora-github-pin {
    background: url("") no-repeat round;
    width: 55px;
    height: 55px;
    position: absolute;
    right: 0;
  }
  .agora-primary-bg {
    color: #fff;
    background-color: $theme-primary !important;
    align-items: center;
  }
  .card.container {
    margin-left: $base-margin-left;
  }
  h5 {
    margin: 0;
    margin-left: $base-margin-left;
  }
  nav {
    height: 55px;
  }

  .agora-secondary-border {
    border: 1px solid $theme-secondary !important;
  }
  .agora-secondary-bg {
    color: #fff;
    background-color: $theme-secondary !important;
    align-items: center;
  }
  .switch {
    height: 55px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    h6 {
      margin: 0;
    }
  }

  #local_stream {
    position: relative;
    transform: rotateY(180deg);
  }

  #local_stream > div {
    background-color: #fff !important;
  }
  
  #local_video_info {
    position: absolute;
  }
  
  .video-view {
    position: relative;
  }
  
  .video-view, 
  .video-placeholder,
  #local_stream, #local_video_info {
    width: 480px;
    height: 360px;
  }
  
  .video-profile {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    z-index: 2;
    color: #fff;
    opacity: 0.9;
    text-shadow: black 0.1em 0.1em 0.2em;
    font-size: 10px;
  }

  .video-grid {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: repeat(2,auto);
    grid-template-rows: auto;
  }

  .video-placeholder {
    position: relative;
  }

  .canvas-control-bar .collapsible-header {
    height: 20px;
    display: flex;
    justify-content: center;
    padding: 0;
    line-height: 18px;
  }

  .canvas-control-bar .collapsible-body {
    padding: 0px;
  }

  .canvas-control-bar {
    position: absolute;
    width: 100px;
    text-align: center;
    top: 0;
    right: 0;
    border-radius: .1rem;
    margin: 0;
  }

  .pointer {
    cursor: pointer;
    padding-right: 2px;
    padding-left: 7px;
  }

  .canvas-control-bar .collapsible-header {
    cursor: pointer;
  }

  .toolbar {
    display: grid;
    grid-gap: 5px;
    grid-template-columns: auto;
    grid-template-rows: auto;
    .progress {
      background: #424242;
      margin: 4px 0;
      height: 13px;
      width: 80%;
    }

    .red {
      background: #FF3333;
    }
    .blue {
      background: #0066FF;
    }
    .green {
      background: #33CC66;
    }
    
    .low {
      height: 1px;
    }
    .mid {
      height: 50%;
    }
    .high {
      height: 80%;
    }
  }

  .grid-item {
    display: grid;
    grid-gap: 1px;
    grid-template-columns: repeat(2, 49px);
  }

  .autoplay-fallback {
    &::after {
      content: 'click here to play';
      font-size: 1.5rem;
      opacity: 0.9;
      text-shadow: black 0.1em 0.1em 0.2em;
      display: block;
      color: #fff;
    }
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    display: block;
    cursor: pointer;
  }
}
